#
# Be sure to run `pod lib lint NEDBase.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'NEDBase'
  s.version          = '0.2.0'
  s.summary          = 'A short description of NEDBase.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'http://gitlab.miguan.com/ad-ios/NEDBase'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '林宁宁' => 'linningning@98du.com' }
  s.source           = { :git => 'http://gitlab.miguan.com/ad-ios/NEDBase.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '9.0'

  s.source_files = 'NEDBase/Classes/NEDBase.h'
  
  s.subspec 'Object' do |cs|
    cs.source_files = 'NEDBase/Classes/Object/**/*'
    
    cs.dependency 'YYModel'
  end
  
  s.subspec 'View' do |cs|
    cs.source_files = 'NEDBase/Classes/View/**/*'
    
    cs.dependency 'Masonry'
    cs.dependency 'NEDStyle'
    cs.dependency 'NEDBase/Object'
  end
  
  s.subspec 'ViewController' do |cs|
    
    cs.subspec 'Base' do |ccs|
      ccs.source_files = 'NEDBase/Classes/ViewController/Base/**/*'
      
#      ccs.dependency 'KMNavigationBarTransition'
      ccs.dependency 'FDFullscreenPopGesture'
      ccs.dependency 'NEDCategory/UIKit/ViewController'
      ccs.dependency 'NEDBase/View'
      ccs.dependency 'NEDApp/Mediator'
    end
    
    cs.subspec 'CallBack' do |ccs|
      ccs.source_files = 'NEDBase/Classes/ViewController/CallBack/**/*'
    end
    
    cs.subspec 'BaseCategoty' do |ccs|
      ccs.source_files = 'NEDBase/Classes/ViewController/BaseCategoty/**/*'
      
      ccs.dependency 'NEDCategory/UIKit/ViewController'
      ccs.dependency 'NEDCategory/Foundation/Dealloc'
      ccs.dependency 'FDFullscreenPopGesture'
    end
    
    cs.subspec 'Web' do |ccs|
      ccs.source_files = 'NEDBase/Classes/ViewController/Web/**/*'
      ccs.resources = 'NEDBase/Assets/Web/**/*'
      
      ccs.dependency 'NEDBase/ViewController/BaseCategoty'
      ccs.dependency 'NEDBase/ViewController/CallBack'
      ccs.dependency 'NEDCategory/Foundation/KVO'
      ccs.dependency 'NEDCategory/Foundation/String'
      ccs.dependency 'NEDConstant'
      ccs.dependency 'NEDStyle'
      ccs.dependency 'NEDApp/AppInfo'
      ccs.dependency 'NEDApp/Mediator'
      ccs.dependency 'WebViewJavascriptBridge'
      ccs.dependency 'YYCategories'
    end
    
    cs.dependency 'Masonry'
  end
  
end
